package com.learn.genericTest;

import java.util.ArrayList;
import java.util.List;

public class TestGeneric {

    public static void main(String[] args) {
        Cat<String> stringCat = new Cat<String>();
        stringCat.cmao("123");
        Cat.miao("maomao");

        List<?> list;
        ArrayList list1 = new ArrayList<String>();
        list1.add("666");
        list1.add("888");
        list = list1;
        for (Object o : list) {
            System.out.println(o);
        }
    }
}
